package util;

import AndroidAction.ElementsAction;
import AssertAll.AssertHome;
import Elemenets.HomeElements;
import Elemenets.PushElements;

/**
 * Created by zhe.xiao on 2017/7/24.
 */

public class UIHelper {
    private static ElementsAction elementsAction;
    private static HomeElements homeElements;
    private static PushElements pushElements;
    private static AssertHome assertHome;

    public static ElementsAction getElementsAction(){
        if(elementsAction == null){
            elementsAction = ElementsAction.getInstrent();
        }
        return elementsAction;
    }

    public static HomeElements getHomeElements(){
        if(homeElements == null){
            homeElements = HomeElements.getInstance();
        }
        return homeElements;
    }

    public static PushElements getPushElements(){
        if(pushElements == null){
            pushElements = PushElements.getInstance();
        }
        return pushElements;
    }

    public static AssertHome getAssertHome(){
        if(assertHome == null){
            assertHome = AssertHome.getAssertHome();
        }
        return assertHome;
    }

}
